package com.scrawler.main;



import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import com.scrawler.task.NBAChannelTask;

@Service
public class StartUpSRank {
	
	private static final Log LOG = LogFactory.getLog(StartUpSRank.class);
	
	@Autowired
	private NBAChannelTask nbaTask;
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		InitProject.init();
		InitProject.getContext().getBean(StartUpSRank.class);
	}
	

//	@Scheduled(fixedRate=300*1000)
//	public void startupChannelViewInfoModule(){
//		
//		new Thread(nbaTask).start();
//		LOG.info("NBA频道推荐线程启动.......");
//		
//	}

//	@Scheduled(cron="0 0/1 * * * ?")   //每1分钟执行一次
//	 public void test(){
//	 }	
}
